#include <fstream>

using namespace std;


namespace xnlog
{
class xlog:public ofstream
{
public:
    xlog();
    xlog(string logfile);
    ~xlog();

public:
    void logto(string file);
    string getlogfile();
private:
    string logfile;
};

string &logtime(string &s)
{

}

#ifdef use_logmsg
#define logmsg(a) a
#else
#define logmsg(a)
#endif

#ifdef use_logmsg1
#define logmsg1(a) a
#else
#define logmsg1(a)
#endif

#ifdef use_logmsg2
#define logmsg2(a) a
#else
#define logmsg2(a)
#endif


#ifdef use_logmsg3
#define logmsg3(a) a
#else
#define logmsg3(a)
#endif

#ifdef use_logerr
#define logerr(a) a
#else
#define logerr(a)
#endif


}


